﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Product.API.ISerivces.Material
{
    /// <summary>
    /// 物料服务接口
    /// </summary>
    public interface IMaterialSerivces
    {
        /// <summary>
        /// 物料添加
        /// </summary>
        /// <param name="material">物料信息</param>
        /// <returns>返回受影响行数</returns>
        Task<int> CreateMaterial(ERP.Domain.Products.Material material);


        /// <summary>
        /// 物料修改
        /// </summary>
        /// <param name="material">物料信息</param>
        /// <returns>返回受影响行数</returns>
        Task<int> UpdateMaterial(ERP.Domain.Products.Material material);


        /// <summary>
        /// 删除物料（逻辑）
        /// </summary>
        /// <param name="Id">物料主键</param>
        /// <returns>返回受影响行数</returns>
        Task<int> DeleteMaterial(int Id);


    }
}
